<script src="js/proinfo/documentCustomUpload.js"></script>
<aside class="lg-side">
    <div class="panel-heading tab-bg-dark-navy-blue okr-tab-head tab-right "></div>
    <div class="inbox-body mi-h8">
        <div class="row">
            <div class="col-lg-12">
                <section class="panel" style="margin-bottom:0;">
                    <header class="panel-heading">
                        文件上传
                    </header>
                    <div class="panel-body">
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">递送客户时间</label>
                            <div class="col-sm-10">
                                <input type="text" id="datetimeCus" value="" certus-required-polyfill ng-model="customFile.deliverTime" class="form-control">
                            </div>
                        </div>

                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">原因</label>
                            <div class="col-sm-10">
                                <input type="text" value="" maxlength="50" placeholder="字数限制(50字以内)" certus-required-polyfill ng-model="customFile.resson" class="form-control">
                            </div>
                        </div>

                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">客户名称</label>
                            <div class="col-sm-10">
                                <input type="text" value="" maxlength="50" placeholder="字数限制(50字以内)" certus-required-polyfill ng-model="customFile.customName" class="form-control">
                            </div>
                        </div>

                        <div ng-include="'templates/upload-file.html'"></div>

                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info" onclick="disprojDocumentCusPage()">返回</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info" ng-click="customFileUpload()">提交</a>
                        </p>
                    </div>
                </section>
            </div>
        </div>
    </div>
</aside>
<script>
    //初始化 时间 控件
    var picker2 = $('#datetimeCus').datetimepicker({
        format: 'YYYY-MM-DD',
        locale: moment.locale('zh-cn')
    }).on('dp.change', function (e) {
        var result = new moment(e.date).format('YYYY-MM-DD');
        if (result && !angular.isUndefined(result)) {
            $$scope.customFile.deliverTime = result;
            $$scope.$apply();
        }
    })
</script>